package shaw.wifi;

import java.math.BigInteger;

import android.content.SharedPreferences;

public class Constants {
	//the IP of the server we want to connect to
	public static final String _HOSTIP = "10.1.0.1";
	
	//the hostname of the server to connect to
	public static final String _HOSTNAME = "http://" + _HOSTIP;
	
	//the path of the script to run for the app
	public static final String _APPSCRIPTPATH = "/httpconnect.php";
	
	//the port used by the "security server" for android < 4 (3 has not yet been tested)
	public static final int _SECURITYSERVERPORT = 8118;
	
	//timeouts before the system gives up
	//(in seconds)
	public static final int _HTTPTIMEOUT = 5;
	public static final int _SOCKETTIMEOUT = 10;

	//show the network settings in the output window
	public static boolean _SHOWSTUFF = true;

	//the open SSID which is to be forgotten (if the user wishes to)
	public static String _OPENSSID = "dd-wrt-open";

	//the maximum size of a message that the application will read from the server
	//(in bytes)
	public static int _MAXREADFROMSERVER = 10000;

	//the total number of bytes the client will read from the server before retiring
	//(in bytes)
	public static int _MAXTOTALFROMSERVER = 100000;
	
	//the username/password set that the application uses to authenticate with the server
	public static String _APPUSERNAME = null;
	public static String _APPPASSWORD = null;
	
	//shared preferences allows us to store our app username/password, even when the device is shut down
	public static SharedPreferences _SHAREDPREFS = null;

	public static final String _SHAREDPREFNAME = "ss_shared_prefs";
	
	public static final BigInteger _RSAMOD = new BigInteger("20656012975068247189844150261217113021651189255671342107947309483533068055204960678046763694948166050082543563264058797895470761786601635422445897188675208045645028583123073426330596852979965696116107943054730698475845129854319975233935085169130785312213259521572800349119489877339419351927579600262041716574958107433670417040751075855710362318611782820655997553470461215671704100593566586749816434710929499011976606513445994149001670006212457533686720140133198631173770714759817832903078409556133003007890668601590827173229198321429953109103187943243823457703195873848248999227596141166297751548044876591665665803691");
	public static final BigInteger _RSAEXP = new BigInteger("65537");
	
	//indicated whether the network settings have been updated
	public static boolean _FINISHED = false;

	//can use the https method if the android version allows
	public static boolean _CANUSEHTTPS = false;
}
